﻿using System;


namespace Eassets.Layered.Domain
{
    public class Mail
    {
        private string to = string.Empty;
        private string from = string.Empty;
        private string body = string.Empty;
        private string subject = string.Empty;
        private string fromName = string.Empty;
        private string toName = string.Empty;
        //Can Use Web Config
        private static string userName = System.Configuration.ConfigurationManager.AppSettings["UserName"];
        private static string password = System.Configuration.ConfigurationManager.AppSettings["Password"];
        private static string smtpHost = System.Configuration.ConfigurationManager.AppSettings["smtpHost"];
        private static int smtpPort = Convert.ToInt16(System.Configuration.ConfigurationManager.AppSettings["smtpPort"]);

        //private static string userName = ConfigurationManager.AppSettings["UserName"];

        public int SmtpPort
        {
            get { return smtpPort; }
        }

        public string SmtpHost
        {
            get { return smtpHost; }
        }

        public string Password
        {
            get { return password; }
        }

        public string UserName
        {
            get { return userName; }
        }

        public string ToName
        {
            get { return toName; }
            set { toName = value; }
        }

        public string FromName
        {
            get { return fromName; }
            set { fromName = value; }
        }

        public string Subject
        {
            get { return subject; }
            set { subject = value; }
        }

        public string Body
        {
            get { return body; }
            set { body = value; }
        }

        public string From
        {
            get { return from; }
            set { from = value; }
        }

        public string To
        {
            get { return to; }
            set { to = value; }
        }
    }
}
